/*
 * DogeMysql.java
 *
 * Created on 15 luglio 2007, 12.59
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package dogeDB;

import java.sql.*;

/**
 *
 * @author daniele
 */
public class DogeMysql extends DogeDB {
    
    /** Creates a new instance of DogeMysql */
    public DogeMysql(String host) {
        this.host=host;
    }

    /** connects to database */
    protected void connect() throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException {
        Class.forName("com.mysql.jdbc.Driver").newInstance();
        dogeDBConnection=DriverManager.getConnection("jdbc:mysql://"+host+"/DoGe",username,password);
    }
    
    private String host;
}
